//
//  ViewController.swift
//  WeiboDemo
//
//  Created by 尹成 on 2017/1/6.
//  Copyright © 2017年 yc. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
//        let name:String = Bundle.main.spaceName + "." + "TestViewController"
//        let cls = NSClassFromString(name) as? UIViewController.Type
//        let vc = cls?.init()
        
//        navigationController?.pushViewController(Bundle.main.createClass(classNameString: "TestViewController") as! UIViewController, animated: true)

//        Bundle.main.jump(classNameString: "TestViewController", from: self)
        YCRouter.jump(from: self, to: "TestViewController")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        YCRouter.jump(from: self, to: "TestViewController")
    }
}

